/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef OHOS_IDLNACLIENTAPP_H
#define OHOS_IDLNACLIENTAPP_H

#include <string_ex.h>
#include <cstdint>
#include <iremote_broker.h>

namespace OHOS {
namespace CastEngine {
namespace CastEngineClient {
class __attribute__((visibility("default")))IDlnaClientApp : public IRemoteBroker {
public:
    DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.IDlnaClientApp");
    virtual ErrCode OnPositionChanged(
        /* [in] */ int position,
        /* [in] */ int duration,
        /* [out] */ int& result) = 0;

    virtual ErrCode OnPlayerStatusChanged(
        /* [in] */ int playerStatus,
        /* [out] */ int& result) = 0;

    virtual ErrCode OnPlayerEnd(
        /* [out] */ int& result) = 0;

    virtual ErrCode OnVolumeChanged(
        /* [in] */ int volume, 
        /* [in] */ int maxVolume,
         /* [out] */ int& result) = 0;

    static constexpr int COMMAND_ON_POSITION_CHANGED = MIN_TRANSACTION_ID + 0;
    static constexpr int COMMAND_ON_PLAYER_STATUS_CHANGED = MIN_TRANSACTION_ID + 1;
    static constexpr int COMMAND_ON_PLAYER_ERROR = MIN_TRANSACTION_ID + 2;
    static constexpr int COMMAND_ON_VOLUNE_CHANGED = MIN_TRANSACTION_ID + 3;

};
}// namespace CastEngineService
}// namespace CastEngine
}// namespace OHOS

#endif // OHOS_IDlnaClientApp_H

